import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnnotation {
    String value();
}

class AnnotationExample {
    @MyAnnotation("Hello")
    public void sayHello() {
        System.out.print("Hello, goldfish here");
    }
}
class AnnotationExample2 extends AnnotationExample {
    @MyAnnotation("Hello from goldfish")
    public void sayHello() {
        super.sayHello();
        System.out.println("... and I'm a goldfish");
    }

}
